package cn.base.demo3;

public class Code11 {
    public static void main(String[] args) {
        System.out.println(getMax(1.6));
    }

    public static double getMax(double a) {
        if (a < 0) {
            a *= -1;
        }
        return a;
    }
}
